const controllers = require("../controllers/city");
const authorization = require('../middleware/authorization');
const adminAuthorization = require('../middleware/adminAuthorization');
module.exports = router => {
    router.get('/city/list', authorization(), controllers.list);

    router.post('/city/admin/create', adminAuthorization(), controllers.create);

    router.get('/city/admin/list', adminAuthorization(), controllers.list);

    router.delete('/city/admin/delete/:id', adminAuthorization(), controllers.delete);
};
